<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<title>Date对象</title>
	</head>
	<body>
		<script type="text/javascript">
			var now=new Date();
			console.log(now.toUTCString());
			console.log(now.toLocaleString());
			console.log(now.getTime());
			console.log(now.getFullYear());
			console.log(now.getMonth());
			console.log(now.getDate());
			console.log(now.getHours());
			console.log(now.getMinutes());
			console.log(now.getSeconds());
			
			
			//修改时间
			now.setDate(24);
			console.log("------------修改----------------------");
			console.log(now.getFullYear());
			console.log(now.getMonth());
			console.log(now.getDate());
			
		</script>
		
	</body>
</html>
